﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="StylishGridView.ascx.cs" Inherits="JQueryPractice.controls.StylishGridView" %>
<%@ Import Namespace="System.ComponentModel" %>
<%@ Import Namespace="PagingControl.JSon" %>

<asp:GridView ID="gridView" runat="server" AutoGenerateColumns="False" 
    onrowdatabound="gridView_RowDataBound">
    <Columns>
        <asp:BoundField DataField="Name" HeaderText="Name" />
        <asp:BoundField DataField="Gender" HeaderText="Gender" />
        <asp:BoundField DataField="Address" HeaderText="Address" />
        <asp:TemplateField HeaderText ="State">
            <ItemTemplate>
                <span><%# ((Address)Eval("Address")).State%></span>
            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
<%--<asp:DataPager ID="dataPager" runat="server">
    <Fields>
        <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" 
            ShowNextPageButton="False" ShowPreviousPageButton="False" />
        <asp:NumericPagerField />
        <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" 
            ShowNextPageButton="False" ShowPreviousPageButton="False" />
    </Fields>
</asp:DataPager>--%>


